﻿@model Everynet.PlanName

@{
    ViewBag.Title = "EditPlanName";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
 <script src="../../ckeditor/ckeditor.js" type="text/javascript">
 </script>
<h2>EditPlanName</h2>
<p>
@Html.ActionLink("Dashboard", "Dashboard","Admin")
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true,"Please correct the errors and try again.")
    <fieldset>
        <legend>Create PlanType</legend>
         @Html.ValidationSummary(true,"Please correct the errors and try again.")
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Name, new { maxlength = "50" })
            @Html.ValidationMessageFor(model => model.Name)
        </div>
         <div class="editor-label">
           <span>PlanTypes</span>
        </div>
        <div class="editor-field">
            @Html.DropDownList("PlanID")
           
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.RedirectUrl)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.RedirectUrl, new { maxlength = "30" })
            @Html.ValidationMessageFor(model => model.RedirectUrl)
           
        </div>
         <div class="editor-label">
            @Html.LabelFor(model => model.Agreement)
        </div>
        <div class="editor-field">
         @Html.TextAreaFor(x => x.Agreement)
         </div>
         
         <div class="editor-label">
            Public Visible:  @Html.CheckBoxFor(model => model.VisiblePublic)
        </div>
       
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
 <script type="text/javascript">

     // This call can be placed at any point after the
     // <textarea>, or inside a <head><script> in a
     // window.onload event handler.

     // Replace the <textarea id="editor"> with an CKEditor
     // instance, using default configurations.

     CKEDITOR.replace('Agreement');

		</script>
<div>
    @Html.ActionLink("Back to List", "PlanName")
</div>